package app

type ClientInfo struct {
	DeviceId string `bson:"device_id" json:"deviceId" validate:"required"`
	Platform string `bson:"platform" json:"platform" validate:"required"`
	Model    string `bson:"model" json:"model" validate:"required"`
}

type AppWsParam struct {
	DeviceId      string `bson:"device_id" json:"deviceId" validate:"required"`
	Platform      string `bson:"platform" json:"platform" validate:"required"`
	Model         string `bson:"model" json:"model" validate:"required"`
	Authorization string `bson:"Authorization" json:"Authorization" validate:"required"`
}

func (a *AppWsParam) GetClientInfo() *ClientInfo {
	return &ClientInfo{
		DeviceId: a.DeviceId,
		Platform: a.Platform,
		Model:    a.Model,
	}
}
